
package com.fricano.java42.swing.dings.tester;

import java.awt.Rectangle;

import com.fricano.java42.base.components.utility.impl.Utility;
import com.fricano.java42.swing.dings.components.impl.J42SwingDing_ScreenWalker;
import com.fricano.java42.swing.dings.components.impl.J42SwingDing_ScreenWalker.J42ScreenWalker_Manager;

public class J42SwingDing_ScreenWalkerTest01 {

    public J42SwingDing_ScreenWalkerTest01() {
    }

    public static void main(final String args[]) throws Exception {

        J42SwingDing_ScreenWalker screenWalker = new J42SwingDing_ScreenWalker() {
            @Override
            public void progress(final J42ScreenWalker_Manager manager, final Rectangle bounds) {
            }
        };

        J42ScreenWalker_Manager manager = screenWalker.getJ42ScreenWalker_Manager();

        manager.setElevationPercent(50);
        manager.setDurationMS(3000);
        manager.setImageName("images/film_640x440.png");
        manager.setImageName("images/walkingElephant.gif");
        manager.setImageSize(0, 250);
        manager.setAudioName(null);
        manager.setGifFrameDelayMS(50);
        manager.setPixelStep(300);

        screenWalker.startWalking(manager);

        Utility.sleep(1500);

        screenWalker = new J42SwingDing_ScreenWalker() {
            @Override
            public void progress(final J42ScreenWalker_Manager manager, final Rectangle bounds) {
            }
        };
        manager = screenWalker.getJ42ScreenWalker_Manager();

        manager.setElevationPercent(43);
        manager.setDurationMS(2000);
        manager.setImageName("images/walkingElephant.gif");
        manager.setGifFrameDelayMS(100);
        manager.setImageSize(150, 0);
        screenWalker.startWalking(manager);
    }

}
